<{extends file="BaseHtml.tpl.html"}>
<{block name=head}>
<link href="<{$smarty.const.WEB_PATH}>skin/css/datetimepicker.css" rel="stylesheet"> 
<!-- <link href="<{$smarty.const.WEB_PATH}>skin/css/bootstrap-wysiwyg.css" rel="stylesheet"> --> 
<{/block}>
<{block name=content}>
<div class="span12">
<div class="navbar margin10tb" >
  <div class="navbar-inner">
    <div class="container">
                  <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                  </a>
                  <div class="nav-collapse collapse navbar-responsive-collapse">
                    <ul class="nav">
                      <li><a class="systembutton" act="list" key="eventvenue" parm="?eid=<{$eventid}>" href="#">活动场地</a></li>
                      <li><a class="systembutton" act="list" key="eventschedule" parm="?eid=<{$eventid}>" href="#">活动议程</a></li>
                      <li><a class="systembutton" act="list" key="eventguest" parm="?eid=<{$eventid}>" href="#">活动嘉宾</a></li>
                      <li class="active"><a href="#">活动内容</a></li>
                    </ul>
                    <ul class="nav pull-right">
                      <li><a class="brand " href="<{$smarty.const.WEB_PATH}>my/cparty?eid=<{$event->eid}>" style="padding:0 10px;line-height: 30px;"><span class="label label-info margin5 font16 padding5"><{$event->name}></span></a></li>
                      <li class="divider-vertical"></li>
                      <li><a class="systembutton" act="list" key="event" href="#">返回活动列表</a></li>
                    </ul>
                  </div><!-- /.nav-collapse -->
                </div>
  </div>
</div>
	<!-- Datatable -->
	<div class="dtdiv">
	<table class="table table-hover table-bordered" style="border:1px solid #999;background: white;">
	    <thead>
	        <tr>
	            <td colspan="7" class="">
	                <div class="datatablemsg nodisplay pull-left"></div>
	                <div class="btn-group pull-right margin5tb" data-toggle="buttons-radio">
	                  <button type="button" class="btn btn-primary jumprow" key="10">10</button>
	                  <button type="button" class="btn btn-primary jumprow" key="20">20</button>
	                  <button type="button" class="btn btn-primary jumprow" key="50">50</button>
	                </div>
	                <div class="input-append pull-right margin5">
	                    <input type="hidden" id="cdtion" value=""/>
	                    <input type="text" class="span2" id="searchkey">
	                    <button type="button" class="btn btn-primary" id="go">标题查询</button>
	                    <button type="button" class="btn btn-primary" id="dialog_create">新增内容</button>
	                </div>
	             </td>
	        </tr>
	        <tr class="trcolumn">
	            <!-- <td class="table_selecter"><input type="checkbox" name="table_checkbox_select" class="table_checkbox_select" /></td> -->
	            <td class="orderkey hover" key="num" flag="0">序号</td>
	            <td class="orderkey hover" key="title" flag="0">标题</td>
	            <td class="orderkey hover" key="content" flag="0">内容</td>
	            <td class="orderkey hover" key="url" flag="0">链接</td>
	            <td class="orderkey hover" key="ectype" flag="0">类别</td>
	            <td class="orderkey hover" key="status" flag="0">状态</td>
	            <td>操作</td>
	        </tr>
	    </thead>
	    <tbody class="tablist">
	    </tbody>
	    <tfoot>
	        <tr>
	            <td colspan="7" class="tabstep">
	             </td>
	        </tr>
	    </tfoot>
	</table>
	</div>
</div>
<!-- Modal -->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog"
    aria-labelledby="myModalLabel" aria-hidden="true" style="width:600px;">
    <form id="form1">
    <input type="reset" style="display:none;" /> 
    <div class="modal-header">
        <button type="button" class="close canceldialog" 
            aria-hidden="true"  onclick="">×</button>
        <h3 id="myModalLabel">活动内容<span class="label label-success dialog_status margin5lr">新增</span></h3>
    </div>
    <div class="modal-body">
            <div class="control-group">
                <label class="control-label" for="input01">内容形式<span class="label margin10lr typetooltips"></span></label>
                <div class="controls contentlist">
                </div>                
            </div>
            <div class="control-group">
                <label class="control-label" for="input01">活动名称/标题</label>
                <div class="controls">
                    <input type="hidden" value="" id="ecid">
                    <input type="text" placeholder="名称" class="input-xxlarge" id="title">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="input01">活动内容</label>
                <div class="controls">
                    <div class="textarea">
                    <textarea style="width:530px;height:80px;" id="content" placeholder="描述"></textarea>
		            </div>
                </div>
                <!-- wysiwyg -----------------start------------------------------------------>
                <!-- <div class="btn-toolbar" data-role="editor-toolbar" data-target="#editor">
				      <div class="btn-group">
				        <a class="btn dropdown-toggle" data-toggle="dropdown" title="Font"><i class="icon-font"></i><b class="caret"></b></a>
				          <ul class="dropdown-menu">
				          </ul>
				        </div>
				      <div class="btn-group">
				        <a class="btn dropdown-toggle" data-toggle="dropdown" title="Font Size"><i class="icon-text-height"></i>&nbsp;<b class="caret"></b></a>
				          <ul class="dropdown-menu">
				          <li><a data-edit="fontSize 5"><font size="5">Huge</font></a></li>
				          <li><a data-edit="fontSize 3"><font size="3">Normal</font></a></li>
				          <li><a data-edit="fontSize 1"><font size="1">Small</font></a></li>
				          </ul>
				      </div>
				      <div class="btn-group">
				        <a class="btn" data-edit="bold" title="Bold (Ctrl/Cmd+B)"><i class="icon-bold"></i></a>
				        <a class="btn" data-edit="italic" title="Italic (Ctrl/Cmd+I)"><i class="icon-italic"></i></a>
				        <a class="btn" data-edit="strikethrough" title="Strikethrough"><i class="icon-strikethrough"></i></a>
				        <a class="btn" data-edit="underline" title="Underline (Ctrl/Cmd+U)"><i class="icon-underline"></i></a>
				      </div>
				      <div class="btn-group">
				        <a class="btn" data-edit="insertunorderedlist" title="Bullet list"><i class="icon-list-ul"></i></a>
				        <a class="btn" data-edit="insertorderedlist" title="Number list"><i class="icon-list-ol"></i></a>
				        <a class="btn" data-edit="outdent" title="Reduce indent (Shift+Tab)"><i class="icon-indent-left"></i></a>
				        <a class="btn" data-edit="indent" title="Indent (Tab)"><i class="icon-indent-right"></i></a>
				      </div>
				      <div class="btn-group">
				        <a class="btn" data-edit="justifyleft" title="Align Left (Ctrl/Cmd+L)"><i class="icon-align-left"></i></a>
				        <a class="btn" data-edit="justifycenter" title="Center (Ctrl/Cmd+E)"><i class="icon-align-center"></i></a>
				        <a class="btn" data-edit="justifyright" title="Align Right (Ctrl/Cmd+R)"><i class="icon-align-right"></i></a>
				        <a class="btn" data-edit="justifyfull" title="Justify (Ctrl/Cmd+J)"><i class="icon-align-justify"></i></a>
				      </div>
				      <div class="btn-group">
				          <a class="btn dropdown-toggle" data-toggle="dropdown" title="Hyperlink"><i class="icon-link"></i></a>
				            <div class="dropdown-menu input-append">
				                <input class="span2" placeholder="URL" type="text" data-edit="createLink"/>
				                <button class="btn" type="button">Add</button>
				        </div>
				        <a class="btn" data-edit="unlink" title="Remove Hyperlink"><i class="icon-cut"></i></a>
				
				      </div>
				      
				      <div class="btn-group">
				        <a class="btn" title="Insert picture (or just drag & drop)" id="pictureBtn"><i class="icon-picture"></i></a>
				        <input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" />
				      </div>
				      <div class="btn-group">
				        <a class="btn" data-edit="undo" title="Undo (Ctrl/Cmd+Z)"><i class="icon-undo"></i></a>
				        <a class="btn" data-edit="redo" title="Redo (Ctrl/Cmd+Y)"><i class="icon-repeat"></i></a>
				      </div>
				      <input type="text" data-edit="inserttext" id="voiceBtn" x-webkit-speech="">
				  </div>
				   <div id="editor">
				    </div>
				    <div>				    
				    </div> -->
                <!-- wysiwyg -----------------end-------------------------------------------->
            </div>
             <div class="control-group">
                <label class="control-label" for="input01">活动链接</label>
                <div class="controls">
                    <input type="text" placeholder="链接网址" class="input-xxlarge" id="url">
                </div>
            </div>
             <div class="control-group">
                <label class="control-label" for="input01">排序</label>
                <div class="controls">
                    <input type="text" placeholder="排序" class="input" id="num">
                </div>
            </div>
             <div class="control-group">
                <label class="control-label" for="input01">活动附件<span class="label label-success margin10lr">附件用于提供用户下载或查看的文件,音频,视频等文件</span></label>
                <div class="controls">                    
                    <a class="btn uploadbtn" >上传文件</a>                   
                    <span class="label label-info margin10lr fname"></span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="input01">附件设置</label>
                <div class="controls">
                    <div class="btn-group" data-toggle="buttons-radio">
                        <a class="btn btn-info useflag" id="cannotuse" key="0">停止附件</a>                        
                        <a class="btn btn-info useflag" id="canuse" key="1">启动附件</a>
                    </div>
                </div>
            </div>
    </div>
    <div class="modal-footer">
        <span class="label label-info left dialogmsg"></span>
        <a class="btn canceldialog" aria-hidden="true">取消</a>
        <a class="btn btn-primary" aria-hidden="true" id="dialog_save">保存</a>
    </div>
    </form>
</div>
<div id="uploadModal" class="modal hide fade" tabindex="-1" role="dialog"
    aria-labelledby="myModalLabel" aria-hidden="true">    
    <input type="reset" style="display:none;" /> 
    <div class="modal-header">
        <button type="button" class="close canceldialog2" 
            aria-hidden="true"  onclick="">×</button>
        <h3 id="myModalLabel">文件上传</h3>
    </div>
    <div class="modal-body">
           <div id="swfdiv">
               <div class="uploadDialog">
                   <form id="form1" action="" method="post" enctype="multipart/form-data" class="">
                       <div class="uploadList">
                           <div class="fieldset flash" id="fsUploadProgress">
                               <span class="legend">上传</span>
                           </div>
                           <div class="up_btn" style="">
                               <span id="spanButtonPlaceHolder"></span>
                               <input class="btn btn-small" id="btnCancel" type="button" value="取消上传" onclick="swfu.cancelQueue();"/> 
                               <lable id="divStatus">0 个文件已上传</lable>
                           </div>
                           <div class="margin10" style="color:#777">上传成功后,请点击确定返回编辑菜单</div>
                       </div>
                   </form>
               </div>
           </div> 
    </div>
    <div class="modal-footer">
        <span class="label label-info left dialogmsg"></span>
        <a class="btn canceldialog2" aria-hidden="true">确定</a>
    </div>    
</div>
<{/block}>
<{block name=body_end}>
<!-- <script src="<{$smarty.const.WEB_PATH}>/js/Jquery/jquery.hotkeys.js"></script> -->
<!-- <script type="text/javascript" src="<{$smarty.const.WEB_PATH}>js/plus/Bootstrap/bootstrap-wysiwyg.js"></script> -->

<script type="text/javascript">
var site = {web:"<{$smarty.const.WEB_PATH}>",page:"page",module:"my/eventcontent",columnh:true,title:"<{$default}>",uid:"<{$user.id}>",ssid:"<{php}>echo session_id();<{/php}>"};
var mpage;
var ufile = {fid:"",name:"",filepath:""};
</script>
<script type="text/javascript" src="<{$smarty.const.WEB_PATH}>js/common/util.js"></script>
<script src="<{$smarty.const.WEB_PATH}>js/swfupload/swfupload.js" type="text/javascript"></script>
<script src="<{$smarty.const.WEB_PATH}>js/swfupload/swfupload.queue.js" type="text/javascript"></script>
<script src="<{$smarty.const.WEB_PATH}>js/swfupload/fileprogress.js" type="text/javascript"></script>
<script src="<{$smarty.const.WEB_PATH}>js/swfupload/handlers.js" type="text/javascript"></script>
<script type="text/javascript" src="<{$smarty.const.WEB_PATH}>js/plus/Bootstrap/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="<{$smarty.const.WEB_PATH}>js/common/page.js"></script>
<script type="text/javascript" src="<{$smarty.const.WEB_PATH}>js/my/event_contentlist.js"></script>

<{/block}>